#include <iostream>

using namespace std;

class ComputeIntSumm
{
private:int _one, _two, _three;

		void EnterInt()
		{
			cin>>_one>>_two>>_three;
		}

public:	ComputeIntSumm()
		{
			EnterInt();
		}

		int Summ()
		{
			return _one + _two + _three;
		}
};

class ComputeDoubleSumm
{
private: double one, two, three;

		 void EnterDouble()
		 {
			 cin>>one>>two>>three;
		 }

public: ComputeDoubleSumm()
		{
			EnterDouble();
		}

		double Summ()
		{
			return one + two + three;
		}		
};